home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / accessibility / nsIAccessibleHyperText.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  130 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAccessibleHyperText.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAccessibleHyperText_h__
  6. #define __gen_nsIAccessibleHyperText_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIAccessibleHyperLink_h__
  14. #include "nsIAccessibleHyperLink.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIAccessibleHyperText */
  23. #define NS_IACCESSIBLEHYPERTEXT_IID_STR "8f18d922-1dd2-11b2-82ea-829b78a44413"
  24.  
  25. #define NS_IACCESSIBLEHYPERTEXT_IID \
  26.   {0x8f18d922, 0x1dd2, 0x11b2, \
  27.     { 0x82, 0xea, 0x82, 0x9b, 0x78, 0xa4, 0x44, 0x13 }}
  28.  
  29. class NS_NO_VTABLE nsIAccessibleHyperText : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEHYPERTEXT_IID)
  33.  
  34.   /* readonly attribute long links; */
  35.   NS_IMETHOD GetLinks(PRInt32 *aLinks) = 0;
  36.  
  37.   /* nsIAccessibleHyperLink getLink (in long index); */
  38.   NS_IMETHOD GetLink(PRInt32 index, nsIAccessibleHyperLink **_retval) = 0;
  39.  
  40.   /* long getLinkIndex (in long charIndex); */
  41.   NS_IMETHOD GetLinkIndex(PRInt32 charIndex, PRInt32 *_retval) = 0;
  42.  
  43.   /* long getSelectedLinkIndex (); */
  44.   NS_IMETHOD GetSelectedLinkIndex(PRInt32 *_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIACCESSIBLEHYPERTEXT \
  50.   NS_IMETHOD GetLinks(PRInt32 *aLinks); \
  51.   NS_IMETHOD GetLink(PRInt32 index, nsIAccessibleHyperLink **_retval); \
  52.   NS_IMETHOD GetLinkIndex(PRInt32 charIndex, PRInt32 *_retval); \
  53.   NS_IMETHOD GetSelectedLinkIndex(PRInt32 *_retval); 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIACCESSIBLEHYPERTEXT(_to) \
  57.   NS_IMETHOD GetLinks(PRInt32 *aLinks) { return _to GetLinks(aLinks); } \
  58.   NS_IMETHOD GetLink(PRInt32 index, nsIAccessibleHyperLink **_retval) { return _to GetLink(index, _retval); } \
  59.   NS_IMETHOD GetLinkIndex(PRInt32 charIndex, PRInt32 *_retval) { return _to GetLinkIndex(charIndex, _retval); } \
  60.   NS_IMETHOD GetSelectedLinkIndex(PRInt32 *_retval) { return _to GetSelectedLinkIndex(_retval); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIACCESSIBLEHYPERTEXT(_to) \
  64.   NS_IMETHOD GetLinks(PRInt32 *aLinks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinks(aLinks); } \
  65.   NS_IMETHOD GetLink(PRInt32 index, nsIAccessibleHyperLink **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLink(index, _retval); } \
  66.   NS_IMETHOD GetLinkIndex(PRInt32 charIndex, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkIndex(charIndex, _retval); } \
  67.   NS_IMETHOD GetSelectedLinkIndex(PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectedLinkIndex(_retval); } 
  68.  
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71.  
  72. /* Header file */
  73. class nsAccessibleHyperText : public nsIAccessibleHyperText
  74. {
  75. public:
  76.   NS_DECL_ISUPPORTS
  77.   NS_DECL_NSIACCESSIBLEHYPERTEXT
  78.  
  79.   nsAccessibleHyperText();
  80.  
  81. private:
  82.   ~nsAccessibleHyperText();
  83.  
  84. protected:
  85.   /* additional members */
  86. };
  87.  
  88. /* Implementation file */
  89. NS_IMPL_ISUPPORTS1(nsAccessibleHyperText, nsIAccessibleHyperText)
  90.  
  91. nsAccessibleHyperText::nsAccessibleHyperText()
  92. {
  93.   /* member initializers and constructor code */
  94. }
  95.  
  96. nsAccessibleHyperText::~nsAccessibleHyperText()
  97. {
  98.   /* destructor code */
  99. }
  100.  
  101. /* readonly attribute long links; */
  102. NS_IMETHODIMP nsAccessibleHyperText::GetLinks(PRInt32 *aLinks)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* nsIAccessibleHyperLink getLink (in long index); */
  108. NS_IMETHODIMP nsAccessibleHyperText::GetLink(PRInt32 index, nsIAccessibleHyperLink **_retval)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* long getLinkIndex (in long charIndex); */
  114. NS_IMETHODIMP nsAccessibleHyperText::GetLinkIndex(PRInt32 charIndex, PRInt32 *_retval)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* long getSelectedLinkIndex (); */
  120. NS_IMETHODIMP nsAccessibleHyperText::GetSelectedLinkIndex(PRInt32 *_retval)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* End of implementation class template. */
  126. #endif
  127.  
  128.  
  129. #endif /* __gen_nsIAccessibleHyperText_h__ */
  130.